package com.example.teststarter.controller;

import com.mylimit.annotation.TokenBucketLimiter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/limitController")
public class LimitController {
    @GetMapping("/query")
    @TokenBucketLimiter(1)
    public String queryUser() {
        return "queryUser";
    }
}
